<script setup lang="ts">
import airName from '@/assets/bit-screen/schedule-mge/air-name.png'
import loadEquip from '@/assets/bit-screen/schedule-mge/load-equip.png'
</script>
<template>
  <div class="airportBox">
    <div class="topBox">
      <img :src="airName" alt="" />
      <p>机场名称：南钢机库1号</p>
      <div v-if="1" class="status">在线</div>
      <div v-else class="status offStatus">离线</div>
    </div>
    <div class="topBox bottomBox">
      <img :src="loadEquip" alt="" />
      <p>载荷设备：</p>
      <div class="equipBox">相机--品灵</div>
      <div class="equipBox">空气检测盒子</div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.airportBox {
  display: flex;
  flex-direction: column;
  font-family: PingFang SC;
  justify-content: space-between;
  font-size: 15px;
  // font-size: 0.8vw;
  height: 68px;

  .topBox {
    display: flex;
    height: 50%;
    color: #d9e4f2;
    align-items: center;
    margin-bottom: 5%;
    img {
      margin-right: 10px;
      width: 20px;
    }
    .status {
    
      padding: 0 5px;
      height: 18px;
      background: linear-gradient(180deg, #ffa508, #ffb81b);
      border-radius: 4px;
      font-weight: 500;
      font-size: 12px;
      color: #ffffff;
      margin-left: 8%;
      text-align: center;
      line-height: 18px;
    }
    .offStatus {
      background: linear-gradient(180deg, #9b9b9b, #a0a0a0);
    }
  }
  .bottomBox {
    height: 50%;
    .equipBox {
      background: rgba(58, 144, 238, 0.3);
      border: 1px solid #3a90ee;
      font-size: 0.8vw;
      font-size: 12px;
      padding: 0 6px;
      margin-right: 10px;
    }
  }
}
</style>
